Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add weekly precipitation data #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dvictori
Copy link

I created a weekly precipitation data, trying to tackle issue #45

Not sure I did it right. Data comes from CHIRPS V2.0 and is aggregated to weekly using a 53 week year (lubridate::week()). From what I recall, it was not possible to use time series with fractional frequencies in SPI().

Here is an exemple on how to use the dataset
#' data(campinas)
#' campinas_ts <- ts(campinas$prcp, frequency = 53, start = c(1981, 1))
#' spi(campinas_ts, scale = 12)

Cheers and thanks for your great work

@sbegueria
Copy link
Owner

Thanks @dvictori, I'll review the DS and include it with an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants